package com.duoqin.syncassistant.viewmodel;

import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.support.annotation.NonNull;

public class BaseViewModel extends AndroidViewModel {
    public static final int LOCAL_ERROR_INVALID_HASH = -2;
    public static final int LOCAL_ERROR_DEFAULT = -1;
    public static final int SERVER_RESULT_SUCCESS = 0;
    public static final int SERVER_RESULT_ERROR_UNKNOWN = 1000;
    public static final int SERVER_RESULT_ERROR_INVALID_PARA = 1001;
    public static final int SERVER_RESULT_ERROR_INVALID_PASSWORD = 1002;
    public static final int SERVER_RESULT_ERROR_MSG_STATUS = 1003;
    public static final int SERVER_RESULT_ERROR_RES_NOT_FOUND = 1004;
    public static final int SERVER_RESULT_ERROR_INVALID_HASH = 1005;
    public static final int SERVER_RESULT_ERROR_INVALID_TOKEN = 1006;
    public static final int SERVER_RESULT_ERROR_INVALID_CODE = 1007;

    public static final int SERVER_RESULT_PAY_COMPLETE = 2003;
    public static final int SERVER_RESULT_PAY_WAITING = 2004;
    public static final int SERVER_RESULT_PAY_EXPIRED = 2005;
    public static final int SERVER_RESULT_PAY_CANCELLED = 2006;

    public static final int PAY_RESULT_SUCCESS = 10000;

    public BaseViewModel(@NonNull Application application) {
        super(application);
    }
}
